package com.fengmi.goods.controller;


import com.fengmi.goods.service.IMallGoodsCatService;
import com.fengmi.vo.CatCascaderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品类目 前端控制器
 * </p>
 *
 * @author zhuxm
 * @since 2021-10-15
 */
@RestController
@RequestMapping("/goods/cat")
public class MallGoodsCatController {
    @Autowired
    private IMallGoodsCatService mallGoodsCatService;
    @RequestMapping("findCat")
    public List<CatCascaderVO> findCat(){
        return mallGoodsCatService.selectCatCascader();
    }
}
